package com.ruitu.mall_98_2.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;

import rx.Observable;

public interface BandingThirdAccountContract {
    interface Model extends BaseModel {
        Observable<BaseResult> bindingQqOrWx(String openId, String type, String accountId,String otherName);

        Observable<BaseResult> unbindQqOrWx(String type, String accountId);

//        Observable<BaseResult> bindAlipay(String accountId, String alipayId, String alipayName);
    }

    interface View extends BaseView {
        void setBindingSuc();

        void setUnbundingSuc();

        void setAlipayBindingSuc();
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void bindingQqOrWx(String openId, String type, String accountId,String otherName);

        public abstract void unbindQqOrWx(String type, String accountId);

//        public abstract void bindAlipay(String accountId, String alipayId, String alipayName);

    }
}
